<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="ro">
<span><router-link to="/login">登陆</router-link></span>
    <span><router-link to="/regist">注册</router-link></span>

    <router-view></router-view>
</div>
</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script src="../js/login.js"></script>
<script src="../js/regist.js"></script>
<script src="../node_modules/vue-router/dist/vue-router.js"></script>

<script>

 const routes =[
     {path:'/login',component:loginForm},
     {path:'/regist',component: regist}
 ]

  const router =  new VueRouter({
     routes
 })

 new Vue({
    el:"#ro",
     data:{},
     router
 })
</script>
</html>